﻿<Window x:Name="MainWindow1" x:Class="EmailCommander.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        Title="Email Commander" Height="555.428" Width="525" Icon="/Images/emailIcon.ico" ResizeMode="NoResize">

    <Grid x:Name="ContainerGrid">
        <GroupBox Header=" Settings " HorizontalAlignment="Left" Margin="27,10,0,0" VerticalAlignment="Top" Height="325" Width="471"/>

        <tb:TaskbarIcon x:Name="myNotifyIcon"
                    Visibility="Visible"
                    ToolTipText="Email Commander"
                    IconSource="/Images/emailIcon.ico"></tb:TaskbarIcon>

        <Label Content="Email Server :" HorizontalAlignment="Left" Margin="33,28,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <TextBox x:Name="txtEmailServer" HorizontalAlignment="Left" Height="23" Margin="147,29,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294"/>

        <Label Content="Port :" HorizontalAlignment="Left" Margin="33,62,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <TextBox x:Name="txtEmailServerPort" HorizontalAlignment="Left" Height="23" Margin="147,63,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294"/>
        <CheckBox x:Name="chkSSL" Content="SSL" HorizontalAlignment="Left" Margin="447,67,0,0" VerticalAlignment="Top"/>

        <Label Content="Protocol :" HorizontalAlignment="Left" Margin="33,90,0,0" VerticalAlignment="Top" Width="107" Height="23"/>
        <RadioButton x:Name="optImap" GroupName="Protocal" Content="IMAP" HorizontalAlignment="Left" Margin="147,95,0,0" VerticalAlignment="Top" IsChecked="True" Width="294" Height="13"/>
        <RadioButton x:Name="optPop" GroupName="Protocal" Content="POP3" HorizontalAlignment="Left" Margin="213,95,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.758,1.224" Width="294" Height="13"/>
        <Label Content="UserName :" HorizontalAlignment="Left" Margin="33,123,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <TextBox x:Name="txtUserName" HorizontalAlignment="Left" Height="23" Margin="147,124,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294"/>
        <Label Content="Password :" HorizontalAlignment="Left" Margin="33,160,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <PasswordBox x:Name="txtPassword" HorizontalAlignment="Left" Margin="147,160,0,0" VerticalAlignment="Top" Width="294" Height="24"/>
        <Label Content="Subject Prefix :" HorizontalAlignment="Left" Margin="33,197,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <TextBox x:Name="txtSubjectPrefix" HorizontalAlignment="Left" Height="23" Margin="147,198,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294"/>
        <Label Content="Cmd Seperator :" HorizontalAlignment="Left" Margin="33,229,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <TextBox x:Name="txtCommandSeparator" HorizontalAlignment="Left" Height="23" Margin="147,230,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294"/>
        <Label Content="Polling Interval :" HorizontalAlignment="Left" Margin="33,261,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.35,-0.553" Width="107" Height="24"/>
        <TextBox x:Name="txtPollingTime" HorizontalAlignment="Left" Height="23" Margin="147,262,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294"/>
        <Button x:Name="btnStartStop" Content="Start" HorizontalAlignment="Left" Margin="405,302,0,0" VerticalAlignment="Top" Width="75" Click="btnStartStop_Click"/>
        <Button Visibility="Hidden" Content="Demo" HorizontalAlignment="Left" Margin="27,302,0,0" VerticalAlignment="Top" Width="74" Height="23" RenderTransformOrigin="-0.467,-0.258" Click="Button_Click"/>

        <GroupBox Header=" Job History " Margin="0,350,0,0" Width="471" Height="170" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" >
            <DockPanel LastChildFill="False" Margin="0,0,0,0">
                <DataGrid x:Name="grdJobHistory" ItemsSource="{Binding}" AutoGenerateColumns="True" Margin="0" Height="135" Width="452"/>
            </DockPanel>

        </GroupBox>

    </Grid>
</Window>
